namespace JQuery.WebKit
{
    using System;
    using System.Security.Permissions;
    using System.Web;

    [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal), AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
    public class WebGridEditFieldAttributeCollection : BaseItemCollection<WebGridColumn, WebGridEditFieldAttribute>
    {
        private static readonly Type[] _knownTypes = new Type[] { typeof(WebGridEditFieldAttribute) };

        protected override object CreateKnownType(int index)
        {
            if (index != 0)
            {
                throw new ArgumentOutOfRangeException("index");
            }
            return new WebGridEditFieldAttribute();
        }

        protected override Type[] GetKnownTypes()
        {
            return _knownTypes;
        }
    }
}

